/**
 * jims
 */
package com.jims.master.modules.operation.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.operation.entity.OperationStaffBefore;
import com.jims.master.modules.operation.dao.OperationStaffBeforeDao;

/**
 * 手术安排人员Service
 * @author DT
 * @version 2017-04-14
 */
@Service
@Transactional(readOnly = true)
public class OperationStaffBeforeService extends CrudService<OperationStaffBeforeDao, OperationStaffBefore> {
	@Autowired
	OperationStaffBeforeDao operationStaffBeforeDao;
	public OperationStaffBefore get(String id) {
		return super.get(id);
	}
	
	public List<OperationStaffBefore> findList(OperationStaffBefore operationStaffBefore) {
		return super.findList(operationStaffBefore);
	}
	
	public Page<OperationStaffBefore> findPage(Page<OperationStaffBefore> page, OperationStaffBefore operationStaffBefore) {
		return super.findPage(page, operationStaffBefore);
	}
	@Transactional(readOnly = false)
	public OperationStaffBefore findIds(OperationStaffBefore operationStaffBefore){
		return operationStaffBeforeDao.findIds(operationStaffBefore);
	}
	@Transactional(readOnly = false)
	public int save(OperationStaffBefore operationStaffBefore) {
		return super.save(operationStaffBefore);
	}
	
	@Transactional(readOnly = false)
	public int delete(OperationStaffBefore operationStaffBefore) {
		return super.delete(operationStaffBefore);
	}
	@Transactional(readOnly = false)
	public int delStaffBefore(String scheduleId) {
		return operationStaffBeforeDao.delStaffBefore(scheduleId);
	}
	
}